package com.csu.service;

import com.csu.common.CommonResponse;
import com.csu.vo.HomeworkSubjectRespVO;
import com.csu.vo.SubjectRespVO;
import org.springframework.stereotype.Service;

import java.util.List;

public interface HomeworksService {
    /**
     *按学科查询作业列表
     */
    public CommonResponse<List<HomeworkSubjectRespVO>> getHomeworkList(int subjectId, int userId);

    /**
     * 发布作业
     */
    public CommonResponse<Object> postHomework(int subjectId, String name, String path, int id);

    /**
     * 获取作业详情
     */
    public CommonResponse<HomeworkSubjectRespVO> getHomework(int homeworkId);

    /**
     * 查询自己发布的作业列表
     */
    public CommonResponse<List<HomeworkSubjectRespVO>> getSelfHomework(int id);

    /**
     * 老师删除作业
     */
    public CommonResponse<Object> deleteHomework(int homeworkId, int id);

    /**
     * 按学科查询作业列表（学生，家长）
     */
    public CommonResponse<List<HomeworkSubjectRespVO>> getHomeworkListStudent(int subjectId, int classId);

    /**
     * 获取作业学科列表
     */
    public CommonResponse<List<SubjectRespVO>> getSubjects(int classId);
}
